import request from '@/utils/request'

const userApi = {
  rechargeOrderList: '/api/orderManagement/encryption/v1/rechargeOrderList',
  withdrawOrderList: '/api/orderManagement/encryption/v1/withdrawOrderList',
  withdrawOrderDetail: '/api/orderManagement/encryption/v1/withdrawOrderDetail',
}

/**
 * @param parameter
 * @returns {*}
 */
export function rechargeOrderList(parameter) {
  return request({
    url: userApi.rechargeOrderList,
    method: 'post',
    data: parameter,
  })
}

export function withdrawOrderList(parameter) {
  return request({
    url: userApi.withdrawOrderList,
    method: 'post',
    data: parameter,
  })
}

export function withdrawOrderDetail(parameter) {
  return request({
    url: userApi.withdrawOrderDetail,
    method: 'post',
    data: parameter,
  })
}
